package com.mf.service.authority;

import com.mf.domain.authority.ResourceInfo;
import com.mf.domain.general.tree.MenuTree;
import com.mf.service.framework.IService;

import java.util.List;
import java.util.Map;

/**
 * 资源信息Service层接口类
 * User: zhaoming
 * DateTime: 2016-07-14
 * To change this template use File | Settings | File Templates.
 **/
public interface ResourceInfoService extends IService<ResourceInfo> {


    /**
     * 根据主键删除资源信息
     * @param resourceInfo 资源信息Domain
     */
    boolean deleteByPrimaryKey(ResourceInfo resourceInfo);

    /**
     * 查询资源信息列表(树形)
     * @param resourceInfo 资源信息Domain
     * @return 资源信息列表
     */
    List<ResourceInfo> treeGirdQuery(ResourceInfo resourceInfo);

    /**
     * 获取资源菜单
     * @return 资源菜单
     */
    List<MenuTree> selectMenuResource();

    /**
     * 检查重复数据
     * @return 验证结果
     */
    Map<String, Object> checkRepeat(ResourceInfo resourceInfo);
}
